package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "contact",comment = "用户好友关系表")
public class Contact {
    @AcColumn(name = "id",comment = "关系ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "friend_id",defaultValue = "0",comment = "好友ID",type = ColumnTypeEnums.INT)
    private Integer friend_id;

    @AcColumn(name = "remark", defaultValue = "", comment = "好友备注", type = ColumnTypeEnums.VARCHAR,length = 30, isNull = false)
    private String remark;

    @AcColumn(name = "status",defaultValue = "0",comment = "好友状态[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer status;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
